class Document < Attachment
  #validates_inclusion_of :mime_type, :in => ["jpeg", "jpg", "gif", "png", "pdf", "doc"];
  
  def editable?(user)
    (storable.kind_of?(Note) && storable.project.user?(user)) ? true : user?(user);
  end
  
end